<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

		<title>GScrum</title>
		
		<a:loadStyle src="/js/ext-js/resources/css/ext-all.css" />
		<a:loadStyle src="/js/ext-js/resources/css/xtheme-blue.css" />
			<a:loadStyle src="/css/style.css" />
		<script
			src="#{facesContext.externalContext.requestContextPath}/js/ext-js/adapter/ext/ext-base.js"
			language="javascript" />
		<script
			src="#{facesContext.externalContext.requestContextPath}/js/ext-js/ext-all.js"
			language="javascript" />
		<script
			src="#{facesContext.externalContext.requestContextPath}/js/layout.js"
			language="javascript" />
				<script
			src="#{facesContext.externalContext.requestContextPath}/js/gscrumJs.js"
			language="javascript" />
	</head>
	<style>
		.rich-mpnl-header {
		background-image:url(/agscrum/imagens/img_panel.jpg);
		background-position:0 50%;
border-color:#99BBE8;
border-left:0 none #99BBE8;
border-right:0 none #99BBE8;
border-top:0 none #99BBE8;
color:#15428B;
font-family:tahoma,arial,verdana,sans-serif;
font-size:11px;
font-weight:bold;
opacity:300;
padding:4px 4px 4px 14px;		
		}
		 
		
    </style>
    <a:outputPanel ajaxRendered="true">
   <h:form style="display:none" prependId="false">
        <h:inputHidden id="maximumSeverity" value="#{facesContext.maximumSeverity.ordinal}"/>
    </h:form>              
</a:outputPanel>
    
	<body>
		<div id="north-div">
			<table width="100%" border="0">
				<tr>
					<td>
						<img
							src="#{facesContext.externalContext.requestContextPath}/imagens/topo/gscrum_logo.jpg" />
					</td>
				</tr>
			</table>
		</div>

		<div id="west-div">
			<ui:insert name="west"></ui:insert>
		</div>
		<div id="content-div">
             <a:status onstart="#{rich:component('wait')}.show()" onstop="#{rich:component('wait')}.hide()" />
    <rich:modalPanel id="wait" autosized="true"  
        moveable="false" resizeable="false" >
        <h:panelGrid columns="2">
        <h:graphicImage value="/imagens/load.gif"  />
        <h:outputText value="Aguarde..."  />
        </h:panelGrid>
    </rich:modalPanel>	
			<ui:insert name="content"></ui:insert>
			<script type="text/javascript">
				//<![CDATA[
			  Ext.onReady(function() {
				 Ext.getCmp('center-panel').setTitle('#{nomeDoForm}');
				 Ext.getCmp('north-panel').getTopToolbar().items.get(4).setText( '#{myIdentity.login}');
				 var name = '#{myIdentity.product.name}';
				 if(name!=null && name!='')
				 Ext.getCmp('north-panel').getTopToolbar().items.get(1).setText( name);
              });

	        //]]>
			</script>
		</div>

	</body>
</html>
